<template>
<view class='box'>
		<view class="sun">
			<image src="../../../static/sun.png" alt="" class='sunbody'>
			<image src="../../../static/eye.png" alt="" class='eye'>
		</view>
		<text class="tip">loading...</text>
	</view>
</template>
<script>
	
    export default {
        data() {
            return {
            pdfUrl:'',
            htmlUrl: '/hybrid/html/web/viewer.html', 
           }
        },
        onLoad(options) {
           let fileUrl = encodeURIComponent(options.pdfUrl)
		   this.pdfUrl= this.htmlUrl+ '?file=' + fileUrl
          }
    }
</script>






<style>
	page{background-color: #ffffff;}
	
	.box{
		width:306rpx;
		height: 300rpx;
		margin:300rpx auto 0;
		background:url(../../../static/1.png) no-repeat left bottom;
		background-size:contain;
		position: relative;
	}
	.sun{
		width:200rpx;
		height: 180rpx;
		top:28%;
		position: absolute;
		left:27px;
		right:7px;
		margin:0 auto;
		z-index: -1;
		animation: move 2.7s infinite linear;
	}
	.sun .eye{
		position: absolute;
		top:28%;
		left:18%;
		width: 40rpx;
		height: 20rpx;
		animation: eye 2.7s infinite linear;
	}
	.sun .sunbody{
		width: 136rpx;
		height: 136rpx;
		animation: scroll 2.7s linear infinite;
	}
	.box .tip{
		text-align: center;
		padding: 0 100rpx;
		top:200px;
		font-family: '苹方';
		font-size:25rpx;
		color:#7a5600;
		animation: opp 2.7s infinite linear;
	}
	@keyframes move{
		0%{
			transform: translateY(0);
		}
		10%{
			transform: translateY(0);
		}
		40%{
			transform: translateY(-55rpx);
		}
		70%{
			transform: translateY(-55rpx);
		}
		100%{
			transform: translateY(0);
		}
	}
	@keyframes scroll{
		0%{
			transform: rotate(0);
		}
		40%{
			transform: rotate(0);
		}
		50%{
			transform: rotate(45deg);
		}
		60%{
			transform: rotate(45deg);
		}
		100%{
			transform: rotate(45deg);
		}
	}
	@keyframes eye{
		0%{
			transform: translateX(0rpx);
		}
		50%{
			transform: translateX(0rpx) scale(1,1);
		}
		55%{
			transform: translateX(0rpx) scale(1,0.1);
		}
		60%{
			transform: translateX(0rpx) scale(1);
		}
		70%{
			transform: translateX(26rpx);
		}
		100%{
			transform: translateX(26rpx);
		}
	}
	@keyframes opp{
		0%{
			opacity: 1;
		}
		40%{
			opacity: 1;
		}
		60%{
			opacity: 0;
		}
		100%{
			opacity: 1;
		}
	}
</style>
